/**   
 * Copyright © 2017 Fan_繁. All rights reserved.
 * 
 * @Title: CityServiceImpl.java 
 * @Prject: anger
 * @Package: com.hzt.anger.service 
 * @Description: TODO
 * @author: ChuanHui   
 * @date: 2017年8月4日 下午9:54:04 
 * @version: V1.0   
 */
package com.hzt.anger.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hzt.anger.dao.CityMapper;
import com.hzt.anger.entity.City;

/**
 * @ClassName: CityServiceImpl
 * @Description: TODO
 * @author: ChuanHui
 * @date: 2017年8月4日 下午9:54:04
 */
@Service
public class CityServiceImpl implements CityService {

	@Autowired
	private CityMapper cityMapper;

	/*
	 * (non Javadoc)
	 * 
	 * @Title: getCity
	 * 
	 * @Description: TODO
	 * 
	 * @param i
	 * 
	 * @return
	 * 
	 * @see com.hzt.anger.service.CityService#getCity(java.lang.Integer)
	 */
	@Override
	public City getCityMq(Integer id) {
		// TODO Auto-generated method stub
		return cityMapper.selectByPrimaryKey(id);
	}

	/*
	 * (non Javadoc)
	 * 
	 * @Title: allCity
	 * 
	 * @Description: TODO
	 * 
	 * @return
	 * 
	 * @see com.hzt.anger.service.CityService#allCity()
	 */
	@Override
	public List<City> allCityMq(Map<String, Object> map) {
		return cityMapper.getCityList(map);
	}

}
